ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Laravel Blade

by SublimeText ALL Top 100

Laravel Blade Template syntax for Sublime Text

Details

  • 2.2.1
    1.6.19
    1.5.3
  • github.​com
  • github.​com
  • 1 month ago
  • 3 hours ago
  • 12 years ago

Installs

  • Total 460K
  • Win 279K
  • Mac 93K
  • Linux 88K
Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18
Windows 7 5 2 4 10 12 10 21 7 13 14 11 14 12 14 8 13 9 12 12 8 14 6 8 7 19 10 7 6 6 12 11 11 14 6 12 3 6 14 3 13 7 10 15 13 7
Mac 2 2 3 1 2 0 2 7 5 1 6 4 7 4 3 3 2 4 3 7 4 5 1 0 2 3 1 0 5 0 1 5 3 3 5 5 3 0 2 7 1 3 5 3 6 3
Linux 2 3 4 5 4 3 5 1 3 0 5 6 3 2 4 1 2 4 6 4 1 2 1 5 4 7 1 3 1 1 1 4 3 1 3 0 1 2 2 3 3 6 1 5 3 4
01020Jun 2May 30May 27May 24May 21May 18May 15May 12May 9May 6May 3Apr 30Apr 27Apr 24Apr 21Apr 18Jun 2 Linux: 2 Mac: 2 Windows: 7Jun 1 Linux: 3 Mac: 2 Windows: 5May 31 Linux: 4 Mac: 3 Windows: 2May 30 Linux: 5 Mac: 1 Windows: 4May 29 Linux: 4 Mac: 2 Windows: 10May 28 Linux: 3 Mac: 0 Windows: 12May 27 Linux: 5 Mac: 2 Windows: 10May 26 Linux: 1 Mac: 7 Windows: 21May 25 Linux: 3 Mac: 5 Windows: 7May 24 Linux: 0 Mac: 1 Windows: 13May 23 Linux: 5 Mac: 6 Windows: 14May 22 Linux: 6 Mac: 4 Windows: 11May 21 Linux: 3 Mac: 7 Windows: 14May 20 Linux: 2 Mac: 4 Windows: 12May 19 Linux: 4 Mac: 3 Windows: 14May 18 Linux: 1 Mac: 3 Windows: 8May 17 Linux: 2 Mac: 2 Windows: 13May 16 Linux: 4 Mac: 4 Windows: 9May 15 Linux: 6 Mac: 3 Windows: 12May 14 Linux: 4 Mac: 7 Windows: 12May 13 Linux: 1 Mac: 4 Windows: 8May 12 Linux: 2 Mac: 5 Windows: 14May 11 Linux: 1 Mac: 1 Windows: 6May 10 Linux: 5 Mac: 0 Windows: 8May 9 Linux: 4 Mac: 2 Windows: 7May 8 Linux: 7 Mac: 3 Windows: 19May 7 Linux: 1 Mac: 1 Windows: 10May 6 Linux: 3 Mac: 0 Windows: 7May 5 Linux: 1 Mac: 5 Windows: 6May 4 Linux: 1 Mac: 0 Windows: 6May 3 Linux: 1 Mac: 1 Windows: 12May 2 Linux: 4 Mac: 5 Windows: 11May 1 Linux: 3 Mac: 3 Windows: 11Apr 30 Linux: 1 Mac: 3 Windows: 14Apr 29 Linux: 3 Mac: 5 Windows: 6Apr 28 Linux: 0 Mac: 5 Windows: 12Apr 27 Linux: 1 Mac: 3 Windows: 3Apr 26 Linux: 2 Mac: 0 Windows: 6Apr 25 Linux: 2 Mac: 2 Windows: 14Apr 24 Linux: 3 Mac: 7 Windows: 3Apr 23 Linux: 3 Mac: 1 Windows: 13Apr 22 Linux: 6 Mac: 3 Windows: 7Apr 21 Linux: 1 Mac: 5 Windows: 10Apr 20 Linux: 5 Mac: 3 Windows: 15Apr 19 Linux: 3 Mac: 6 Windows: 13Apr 18 Linux: 4 Mac: 3 Windows: 7Jun 2 Linux: 2 Mac: 2 Windows: 7Jun 1 Linux: 3 Mac: 2 Windows: 5May 31 Linux: 4 Mac: 3 Windows: 2May 30 Linux: 5 Mac: 1 Windows: 4May 29 Linux: 4 Mac: 2 Windows: 10May 28 Linux: 3 Mac: 0 Windows: 12May 27 Linux: 5 Mac: 2 Windows: 10May 26 Linux: 1 Mac: 7 Windows: 21May 25 Linux: 3 Mac: 5 Windows: 7May 24 Linux: 0 Mac: 1 Windows: 13May 23 Linux: 5 Mac: 6 Windows: 14May 22 Linux: 6 Mac: 4 Windows: 11May 21 Linux: 3 Mac: 7 Windows: 14May 20 Linux: 2 Mac: 4 Windows: 12May 19 Linux: 4 Mac: 3 Windows: 14May 18 Linux: 1 Mac: 3 Windows: 8May 17 Linux: 2 Mac: 2 Windows: 13May 16 Linux: 4 Mac: 4 Windows: 9May 15 Linux: 6 Mac: 3 Windows: 12May 14 Linux: 4 Mac: 7 Windows: 12May 13 Linux: 1 Mac: 4 Windows: 8May 12 Linux: 2 Mac: 5 Windows: 14May 11 Linux: 1 Mac: 1 Windows: 6May 10 Linux: 5 Mac: 0 Windows: 8May 9 Linux: 4 Mac: 2 Windows: 7May 8 Linux: 7 Mac: 3 Windows: 19May 7 Linux: 1 Mac: 1 Windows: 10May 6 Linux: 3 Mac: 0 Windows: 7May 5 Linux: 1 Mac: 5 Windows: 6May 4 Linux: 1 Mac: 0 Windows: 6May 3 Linux: 1 Mac: 1 Windows: 12May 2 Linux: 4 Mac: 5 Windows: 11May 1 Linux: 3 Mac: 3 Windows: 11Apr 30 Linux: 1 Mac: 3 Windows: 14Apr 29 Linux: 3 Mac: 5 Windows: 6Apr 28 Linux: 0 Mac: 5 Windows: 12Apr 27 Linux: 1 Mac: 3 Windows: 3Apr 26 Linux: 2 Mac: 0 Windows: 6Apr 25 Linux: 2 Mac: 2 Windows: 14Apr 24 Linux: 3 Mac: 7 Windows: 3Apr 23 Linux: 3 Mac: 1 Windows: 13Apr 22 Linux: 6 Mac: 3 Windows: 7Apr 21 Linux: 1 Mac: 5 Windows: 10Apr 20 Linux: 5 Mac: 3 Windows: 15Apr 19 Linux: 3 Mac: 6 Windows: 13Apr 18 Linux: 4 Mac: 3 Windows: 7Jun 2 Linux: 2 Mac: 2 Windows: 7Jun 1 Linux: 3 Mac: 2 Windows: 5May 31 Linux: 4 Mac: 3 Windows: 2May 30 Linux: 5 Mac: 1 Windows: 4May 29 Linux: 4 Mac: 2 Windows: 10May 28 Linux: 3 Mac: 0 Windows: 12May 27 Linux: 5 Mac: 2 Windows: 10May 26 Linux: 1 Mac: 7 Windows: 21May 25 Linux: 3 Mac: 5 Windows: 7May 24 Linux: 0 Mac: 1 Windows: 13May 23 Linux: 5 Mac: 6 Windows: 14May 22 Linux: 6 Mac: 4 Windows: 11May 21 Linux: 3 Mac: 7 Windows: 14May 20 Linux: 2 Mac: 4 Windows: 12May 19 Linux: 4 Mac: 3 Windows: 14May 18 Linux: 1 Mac: 3 Windows: 8May 17 Linux: 2 Mac: 2 Windows: 13May 16 Linux: 4 Mac: 4 Windows: 9May 15 Linux: 6 Mac: 3 Windows: 12May 14 Linux: 4 Mac: 7 Windows: 12May 13 Linux: 1 Mac: 4 Windows: 8May 12 Linux: 2 Mac: 5 Windows: 14May 11 Linux: 1 Mac: 1 Windows: 6May 10 Linux: 5 Mac: 0 Windows: 8May 9 Linux: 4 Mac: 2 Windows: 7May 8 Linux: 7 Mac: 3 Windows: 19May 7 Linux: 1 Mac: 1 Windows: 10May 6 Linux: 3 Mac: 0 Windows: 7May 5 Linux: 1 Mac: 5 Windows: 6May 4 Linux: 1 Mac: 0 Windows: 6May 3 Linux: 1 Mac: 1 Windows: 12May 2 Linux: 4 Mac: 5 Windows: 11May 1 Linux: 3 Mac: 3 Windows: 11Apr 30 Linux: 1 Mac: 3 Windows: 14Apr 29 Linux: 3 Mac: 5 Windows: 6Apr 28 Linux: 0 Mac: 5 Windows: 12Apr 27 Linux: 1 Mac: 3 Windows: 3Apr 26 Linux: 2 Mac: 0 Windows: 6Apr 25 Linux: 2 Mac: 2 Windows: 14Apr 24 Linux: 3 Mac: 7 Windows: 3Apr 23 Linux: 3 Mac: 1 Windows: 13Apr 22 Linux: 6 Mac: 3 Windows: 7Apr 21 Linux: 1 Mac: 5 Windows: 10Apr 20 Linux: 5 Mac: 3 Windows: 15Apr 19 Linux: 3 Mac: 6 Windows: 13Apr 18 Linux: 4 Mac: 3 Windows: 7

Readme

Source
raw.​githubusercontent.​com

Blade

Laravel Blade Template syntax definitions for Sublime Text based on its HTML/CSS/JS syntaxes.

preview

Installation

Package Control

The easiest way to install is using Package Control. It's listed as Laravel Blade.

  1. Open Command Palette using ctrl+shift+P or menu item Tools → Command Palette...
  2. Choose Package Control: Install Package
  3. Find Laravel Blade and hit Enter
  4. Restart Sublime Text (e.g.: if A File Icons is installed)
  5. Reopen any .blade files.

Manual Install

  1. Download or clone this repository into [install-dir]/Packages/Laravel Blade
  2. Restart Sublime Text (e.g.: if A File Icons is installed)
  3. Reopen any .blade files.

[!NOTE]

Syntax from main branch require Sublime Text 4.

For Sublime Text 3 compatible version refer to st3 branch.

Supported Frontend Syntax

To use AlpineJS with Blade templates, 1. install AlpineJS package 2. follow instructions to create combined HTML (Blade, AlpineJS) syntax

Supported Extensions

Snippets

For Blade related snippets, please install Blade Snippets package.

Troubleshooting

§1 Syntax Definition Parse Errors

Blade extends Sublime Text's HTML syntax definition.

If Blade syntax highlighting doesn't work and console displays syntax errors in HTML (Blade).sublime-syntax, please make sure to remove any out-dated syntax override.

Steps:

  1. call Menu > Preferences > Browse Packages..
  2. Look for HTML folder
  3. Remove it or at least delete any syntax definition in it.

§2 Scripts are not correctly highlighted

Blade relies on JavaScript (source.js) to scope script blocks and inline scripts.

Make sure to remove related out-dated syntax packages, which don't meet least compatibility requirements.

They can be identified by calling e.g. sublime.find_syntax_by_scope("source.js") in ST's console.

Known candidates are:

Credits

It is a fork of great Medialink/Laravel Blade Highlighter.